vsync scanline finder for windows
vsync vblank finder for macs. (and hopefully Linux in the future, if they implement it)

render_thread_handle_events.cpp - extrapolate_mouse_position()

platform_vsync.cpp - how to get display information from Windows
renderer.cpp/frame_time_measurement.cpp - basics of querying GPU timers. plus discussions of performance
renderer.cpp - tearline swap mechanism. (doesn't work for VRR displays, because I don't have one to test. but would be easy otherwise)

circular_buffer_spsc.h - single-producer, single-producer circular buffer. takes one less atomic operation to query than other implementations. uses 4 bytes extra space


less interesting:
color.h - color library
console.h - output library
input_callbacks.cpp - input architecture. one thread takes input and passes the events to another thread. this keeps the first thread responsive; otherwise it will drop cursor events
timing.cpp/spinsleep.cpp - some documentation on timing functions. summary: don't use C++'s clocks, and don't use C++'s sleep functions